home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: FAQ list overspecificity (was: Very Simple <maths.h> problem...)
- Date: Thu, 04 Apr 96 23:13:18 GMT
- Organization: none
- Message-ID: <828659598snz@genesis.demon.co.uk>
- References: <4jf0c9$rs8@nic.umass.edu> <315B11FD.6460@oc.com> <DpAtJz.5z5@eskimo.com>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <DpAtJz.5z5@eskimo.com> scs@eskimo.com "Steve Summit" writes:
-
- >In article <315B11FD.6460@oc.com>, Larry Weiss <lfw@oc.com> writes:
- >> Eugene K Hall wrote:
- >>> ld: Unresolved: exp
- >>
- >> The answer can be found by extrapolating from this comp.lang.c FAQ entry:
- >>
- >> 14.3: I'm trying to do some simple trig, and I am #including <math.h>,
- >> but I keep getting "undefined: sin" compilation errors.
- >>
- >> A: Make sure you're actually linking with the math library. For
- >> instance, under Unix, you usually need to use the -lm option...
- >
- >The upside of the question as it's currently worded is that it
- >appeals to the FAQ maintainer's sense of how the game ought to be
- >played. The downsides are that someone who knows he's not
- >"trying to do some simple trig," or who is searching mechanically
- >for the name of the one <math.h> routine he *is* having problems
- >with, may overlook question 14.3.
-
- I would prefer to see a couple of common functions listed there (e.g. sin,
- sqrt, pow, fabs) ehich should make it clear that this does extrapolate
- to other math.h functions and has a better chance of matching a text
- search.
-
- >I *do* assume, and hope, that someone reading 14.3 can
- >extrapolate to other <math.h> functions. Perhaps I doth assume
- >too much. Comments?
-
- If it reduces the number of inappropriate posts to the newsgroup,
- I'm for it.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-